/**********************************************************************************************/
// dgt_Utils.h
//
// Some util functions for dgtKernel
// Copyright Diamant Group 2008
/**********************************************************************************************/
#ifndef _DGT_UTILS_H_
#define _DGT_UTILS_H_

#include "dgtKernel.h"
#include "sh_ptr.hpp"
#include "dgt_BoolElement.h"

using namespace std;

/**********************************************************************************************/
/**
* @brief Function for getting bit from unsigned number. Bits are numerated from the youngers.
* @param inNum Unsigned number from which will bit getting
* @param inBitNumber number of the bit (maximum - 32)
* @return Value of the specified bit
*/
bool			get_Bit( unsigned inNum, unsigned inBitNumber );

/**********************************************************************************************/
unsigned		get_NumFromBits( wxBoolArray inArray );

/**********************************************************************************************/
pair<wxString, unsigned>	get_LibAndNum( dgt_BoolElement_Ptr inElement );



#endif // _DGT_UTILS_H_